<!DOCTYPE html>
<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>#{msg.cstate}</title>
	<link href="resources/styles/main.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</h:head>

<h:body>
	<f:view locale="#{language.localeCode}" />
	<div id="container">
		<div id="header">
			<ui:include src="/header.xhtml">
				<ui:param name="title" value="#{msg.state}" />
			</ui:include>
		</div>
		<div id="content">

			<h:form id="stateDetailForm">
				<h:panelGrid id="pnlStateDetail" columns="2" cellspacing="30"
					border="0" title="Universitario">
					<c:if test="#{stateViewBean.editible}">
	    State Id:<h:inputText value="#{stateViewBean.selectedState.id}"
							readonly="true">
						</h:inputText>
					</c:if>
	    State Name:<h:inputText value="#{stateViewBean.selectedState.name}"
						required="true" requiredMessage="#{msg.rmname}" />
					<c:if test="#{not empty stateViewBean.selectedState.created}">
	    State Created:<h:inputText readonly="true"
							value="#{stateViewBean.selectedState.created}" />
	    State Modified:<h:inputText readonly="true"
							value="#{stateViewBean.selectedState.modified}" />
					</c:if>
					<ui:include src="/detail.xhtml">
						<ui:param name="bean" value="#{stateViewBean}" />
					</ui:include>
					<br />
				</h:panelGrid>
			</h:form>
		</div>
		<div id="footer">
			<ui:insert name="footer">
				<ui:include src="/footer.xhtml" />
			</ui:insert>
		</div>
	</div>
</h:body>
</html>